package ddmzs.test;

public class Mouse{
    private String name;
    public Mouse(String name){
        this.name = name;

    }
    void printInfo(){
        System.out.println("大家好，我是"+name);
    }
    void squeak(){
        System.out.println(name+"吱吱吱");
    }
    void stealFood(){
        System.out.println(name+"偷吃鱼啦");
    }

    public String getName(String name) {
        return this.name =name;
    }

}
